import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    //登录令牌
    adminToken:'',
    adminName:''
  },
  mutations: {
    // 中的状态的唯一方法是提交 mutation
    upDateaAminToken(state,payload){
      state.adminToken = payload.token
    },
    upDateaAdminName(state,payload){
      state.adminName = payload.name
    }
  },
  actions: {
  },
  modules: {
  }
})
